<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  <head>  
    <?php include_http_metas() ?>
    <?php include_metas() ?>
    <?php include_title() ?>
  	<?php include_stylesheets() ?>    
    <?php include_javascripts() ?>
  	
  	<link rel="shortcut icon" href="/images/logo_small.png" />
    
    <!--jquery-->
    <!--<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>-->
    <?php use_javascript('/js/jquery.min.js');?>

    <?php include_stylesheets() ?>
    <?php include_javascripts() ?>
  
    <!--[if IE 6]><link rel="stylesheet" type="text/css" media="screen" href="/css/admin/ie6.css" /><![endif]-->
    <!--[if IE 7]><link rel="stylesheet" type="text/css" media="screen" href="/css/admin/ie7.css" /><![endif]-->
  </head>

  <body>
    <div id="container">
      <div id="header">
        <h2 style="margin-top:26px;">Sprite League :: Admin panel</h2>
        <?php $tab = isset($tab) ? $tab : $sf_request->getParameter('module'); ?>
  
        <br clear="all">
        <div id="topmenu">
          <ul>
            <?php if($sf_user->isAuthenticated()):?>
            
              <li <?php echo $tab == 'content' ? 'class="current"' : '' ?>>
                  <?php echo link_to('Мэдээ', 'content/index')?>
              </li>
			  
      			  <li <?php echo $tab == 'league' ? 'class="current"' : '' ?>>
                  <?php echo link_to('Лиг', 'league/index')?>
              </li>
			  
              <li <?php echo $tab == 'season' ? 'class="current"' : '' ?>>
                  <?php echo link_to('Улирал', 'season/index')?>
              </li>
			  
              <li <?php echo $tab == 'group' ? 'class="current"' : '' ?>>
                  <?php echo link_to('Груп', 'group/index')?>
              </li>
              
              <li <?php echo $tab == 'team' ? 'class="current"' : '' ?>>
                  <?php echo link_to('Баг', 'team/index')?>
              </li>
			  			  
			       <li <?php echo $tab == 'player' ? 'class="current"' : '' ?>>
                  <?php echo link_to('Тоглогч', 'player/index')?>
              </li>
			  
              <li <?php echo $tab == 'matchday' ? 'class="current"' : '' ?>>
                  <?php echo link_to('Тоглолтын өдөр', 'matchday/index')?>
              </li>
              
			        <li <?php echo $tab == 'match' ? 'class="current"' : '' ?>>
                  <?php echo link_to('Тоглолт', 'match/index')?>
              </li>
              
              <li <?php echo $tab == 'gallery' ? 'class="current"' : '' ?>>
                  <?php echo link_to('Зураг', 'gallery/index')?>
              </li>
              
              <li <?php echo $tab == 'video' ? 'class="current"' : '' ?>>
                  <?php echo link_to('Видео', 'video/index')?>
              </li>
              
              <li <?php echo $tab == 'poll' ? 'class="current"' : '' ?>>
                  <?php echo link_to('С/Асуулга', 'poll/index')?>
              </li>

              <li <?php echo $tab == 'productCategory' ? 'class="current"' : '' ?>>
                  <?php echo link_to('Барааны категори', 'productCategory/index')?>
              </li>
              
              <li <?php echo $tab == 'product' ? 'class="current"' : '' ?>>
                  <?php echo link_to('Бараа', 'product/index')?>
              </li>
              
              	<!--<li <?php //echo $tab == 'user' ? 'class="current"' : '' ?>>
                <?php //echo link_to('Имэйлүүд', 'user/subscribers')?>
              </li>-->
              
              <li <?php echo $tab == 'user' ? 'class="current"' : '' ?>>
                <?php echo link_to('Хэрэглэгч', 'user/index')?>
              </li>
              
              <li><?php echo link_to('Гарах', '@logout')?></li>
            <?php else:?>
              <li>&nbsp;</li>
            <?php endif ?>
          </ul>
          
        </div>
      </div>
     
      <div id="wrapper">
        <div id="content" class="full">
          <!-- message boxes -->
          <?php include_partial("global/messages", array());?>
          
          <?php echo $sf_content ?>
        </div>
      </div>
  
      <div id="footer">
        Sprite League &copy; 2011
        <br clear="all">
      </div>
      
    </div>
  </body>
</html>